

#ifndef HiGraphQueue_h_
#include "HiGraphQueue.h"
#endif

#ifndef HiGraphTimer_h_
#include "HiGraphTimer.h"
#endif

#ifndef __TELE_MAIN_TIMERS_H__
#include "teleMainTimers.h"
#endif

#ifndef _teleLogTrace_h
#include "teleLogTrace.h"
#endif

#ifndef _RmtCfgStateHigraph_h
#include "RmtCfgStateHigraph.h"
#endif

#ifndef _RmtCfgStateEvt_h
#include "RmtCfgStateEvt.h"
#endif

#ifndef RmtCfgStateFile_H
#include "RmtCfgStateFile.h"
#endif

#ifndef _entIMediaMSGQ_h
//#include "entIMediaMSGQ.h"
#endif

#include "HiGraphStateGenerator.h"
#include "tlmRmtCfgSrvRpcCommonDesc.h"
#include "tlmRmtCfgSrvApp.h"


extern HiGraphQueue gTeleQueue;
extern HiGraphTimer gTeleTimer;




/**
 * \brief RmtCfgStateHigraph:
 *
 * 		This function is a constructor of this class.
 *
 * \details
 *		Intialize all member variables.
 *
 * \param [in]
 *
 * \return
 */
RmtCfgStateHigraph::RmtCfgStateHigraph()
{
	LOG_PRINT(DPCA_TELE_CONNMGR_INFO,"[TELE]:RmtCfgStateHigraph::RmtCfgStateHigraph Consturctor\n");

    m_CurrentState  = 0;
    m_StateChart    = Higraph_RmtCfg;

}


/**
 * \brief ~RmtCfgStateHigraph
 *
 * This function is a disstructor of this class.
 *
 *
 * \details
 *
 * \param [in]
 *
 * \return
 */
RmtCfgStateHigraph::~RmtCfgStateHigraph()
{
}



uint16_t RmtCfgStateHigraph::CheckNewPendMsg(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::HandlePendingMsg(uint32_t para)
{
    //here para is the pointer to a message instance

    LOG_PRINT(DPCA_TELE_MSGSRV_INFO,"[TLM]:RmtCfgStateHigraph::HandlePendingMsg(0x%x)\n",para);

	tlmRmtCfgSrvApp* pRPCHandler = const_cast<tlmRmtCfgSrvApp*>(&(tlmRmtCfgSrvApp::getInstance()));
	if (pRPCHandler){
		pRPCHandler->tlmRmtCfgSrvApp_makeAsyncCall(	FUNCID_TLM_RMT_CFG_HANDLE_PENDING_MSG ,
												reinterpret_cast<DWORD*>(para),
												sizeof(state) );
	}
    return 0;
}
uint16_t RmtCfgStateHigraph::SendConMsg(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::onReceiveNewPendMsg(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::HandleSetConfigMsg(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::SendAckMsg(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::onReqConnection(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::onReqDisConnection(uint32_t para)
{
    return 0;
}
uint16_t RmtCfgStateHigraph::CheckConnState(uint32_t para)
{
    return 0;
}

